package com.vietjetair.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 机票信息
 */
@Data
public class AirTicket implements Serializable {



    public AirTicket() {
    }

    public AirTicket(String flightDate, String departureTime, String timeOfArrival, String flightDetails) {
        this.flightDate = flightDate;
        this.departureTime = departureTime;
        this.timeOfArrival = timeOfArrival;
        this.flightDetails = flightDetails;
    }
    /** key */
    private String key;
    /** 航班日期 */
    private String flightDate;
    /** 起飞时间 */
    private String departureTime;
    /** 预计到达 */
    private String timeOfArrival;
    /** 详情 */
    private String flightDetails;

    private Promo promo;
    private Eco eco;
    private SkyBoss skyBoss;

    @Data
    public static class Promo implements Serializable{
        /** 去按钮 */
        private String goButton;
        /** 来按钮 */
        private String comeButton;
        /** 票价 */
        private String fare;
        /** 计费 */
        private String charges;
        /** 税务 */
        private String fareTaxes;
        /** 总计 */
        private String total;
    }

    @Data
    public static class Eco implements Serializable{
        /** 去按钮 */
        private String goButton;
        /** 来按钮 */
        private String comeButton;
        /** 票价 */
        private String fare;
        /** 计费 */
        private String charges;
        /** 税务 */
        private String fareTaxes;
        /** 总计 */
        private String total;
    }

    @Data
    public static class SkyBoss implements Serializable{
        /** 去按钮 */
        private String goButton;
        /** 来按钮 */
        private String comeButton;
        /** 票价 */
        private String fare;
        /** 计费 */
        private String charges;
        /** 税务 */
        private String fareTaxes;
        /** 总计 */
        private String total;
    }

    @Override
    public String toString() {
        return "AirTicket{" +
                "flightDate='" + flightDate + '\'' +
                ", departureTime='" + departureTime + '\'' +
                ", timeOfArrival='" + timeOfArrival + '\'' +
                ", flightDetails='" + flightDetails + '\'' +
                ", promo=" + promo +
                ", eco=" + eco +
                ", skyBoss=" + skyBoss +
                '}';
    }
}
